3.6.18 \(\int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx\) [518]

3.6.18.1 Optimal result
3.6.18.2 Mathematica [A] (verified)
3.6.18.3 Rubi [A] (verified)
3.6.18.4 Maple [C] (verified)
3.6.18.5 Fricas [C] (verification not implemented)
3.6.18.6 Sympy [F]
3.6.18.7 Maxima [F]
3.6.18.8 Giac [F]
3.6.18.9 Mupad [F(-1)]

3.6.18.1 Optimal result

Integrand size = 16, antiderivative size = 51 \[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {\operatorname {EllipticF}\left (e+f x,-\frac {b}{a}\right ) \sqrt {1+\frac {b \sin ^2(e+f x)}{a}}}{f \sqrt {a+b \sin ^2(e+f x)}} \]

output
(cos(f*x+e)^2)^(1/2)/cos(f*x+e)*EllipticF(sin(f*x+e),(-b/a)^(1/2))*(1+b*si 
n(f*x+e)^2/a)^(1/2)/f/(a+b*sin(f*x+e)^2)^(1/2)
 
3.6.18.2 Mathematica [A] (verified)

Time = 0.05 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.18 \[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\frac {\sqrt {\frac {2 a+b-b \cos (2 (e+f x))}{a}} \operatorname {EllipticF}\left (e+f x,-\frac {b}{a}\right )}{f \sqrt {2 a+b-b \cos (2 (e+f x))}} \]

input
Integrate[1/Sqrt[a + b*Sin[e + f*x]^2],x]
 
output
(Sqrt[(2*a + b - b*Cos[2*(e + f*x)])/a]*EllipticF[e + f*x, -(b/a)])/(f*Sqr 
t[2*a + b - b*Cos[2*(e + f*x)]])
 
3.6.18.3 Rubi [A] (verified)

Time = 0.28 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3042, 3662, 3042, 3661}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {1}{\sqrt {a+b \sin (e+f x)^2}}dx\)

\(\Big \downarrow \) 3662

\(\displaystyle \frac {\sqrt {\frac {b \sin ^2(e+f x)}{a}+1} \int \frac {1}{\sqrt {\frac {b \sin ^2(e+f x)}{a}+1}}dx}{\sqrt {a+b \sin ^2(e+f x)}}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\sqrt {\frac {b \sin ^2(e+f x)}{a}+1} \int \frac {1}{\sqrt {\frac {b \sin (e+f x)^2}{a}+1}}dx}{\sqrt {a+b \sin ^2(e+f x)}}\)

\(\Big \downarrow \) 3661

\(\displaystyle \frac {\sqrt {\frac {b \sin ^2(e+f x)}{a}+1} \operatorname {EllipticF}\left (e+f x,-\frac {b}{a}\right )}{f \sqrt {a+b \sin ^2(e+f x)}}\)

input
Int[1/Sqrt[a + b*Sin[e + f*x]^2],x]
 
output
(EllipticF[e + f*x, -(b/a)]*Sqrt[1 + (b*Sin[e + f*x]^2)/a])/(f*Sqrt[a + b* 
Sin[e + f*x]^2])
 

3.6.18.3.1 Defintions of rubi rules used

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3661
Int[1/Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2], x_Symbol] :> Simp[(1/(S 
qrt[a]*f))*EllipticF[e + f*x, -b/a], x] /; FreeQ[{a, b, e, f}, x] && GtQ[a, 
 0]
 

rule 3662
Int[1/Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2], x_Symbol] :> Simp[Sqrt[ 
1 + b*(Sin[e + f*x]^2/a)]/Sqrt[a + b*Sin[e + f*x]^2]   Int[1/Sqrt[1 + (b*Si 
n[e + f*x]^2)/a], x], x] /; FreeQ[{a, b, e, f}, x] &&  !GtQ[a, 0]
 
3.6.18.4 Maple [C] (verified)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 0.55 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.02

method result size
default \(\frac {\sqrt {\frac {a +b \left (\sin ^{2}\left (f x +e \right )\right )}{a}}\, \operatorname {am}^{-1}\left (f x +e \bigg | \frac {i \sqrt {b}}{\sqrt {a}}\right )}{f \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}}\) \(52\)

input
int(1/(a+b*sin(f*x+e)^2)^(1/2),x,method=_RETURNVERBOSE)
 
output
1/f/(a+b*sin(f*x+e)^2)^(1/2)*((a+b*sin(f*x+e)^2)/a)^(1/2)*InverseJacobiAM( 
f*x+e,I/a^(1/2)*b^(1/2))
 
3.6.18.5 Fricas [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 0.12 (sec) , antiderivative size = 305, normalized size of antiderivative = 5.98 \[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=-\frac {{\left (2 i \, \sqrt {-b} b \sqrt {\frac {a^{2} + a b}{b^{2}}} + {\left (-2 i \, a - i \, b\right )} \sqrt {-b}\right )} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} F(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} {\left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} + 8 \, a b + b^{2} - 4 \, {\left (2 \, a b + b^{2}\right )} \sqrt {\frac {a^{2} + a b}{b^{2}}}}{b^{2}}) + {\left (-2 i \, \sqrt {-b} b \sqrt {\frac {a^{2} + a b}{b^{2}}} + {\left (2 i \, a + i \, b\right )} \sqrt {-b}\right )} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} F(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} {\left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} + 8 \, a b + b^{2} - 4 \, {\left (2 \, a b + b^{2}\right )} \sqrt {\frac {a^{2} + a b}{b^{2}}}}{b^{2}})}{b^{2} f} \]

input
integrate(1/(a+b*sin(f*x+e)^2)^(1/2),x, algorithm="fricas")
 
output
-((2*I*sqrt(-b)*b*sqrt((a^2 + a*b)/b^2) + (-2*I*a - I*b)*sqrt(-b))*sqrt((2 
*b*sqrt((a^2 + a*b)/b^2) + 2*a + b)/b)*elliptic_f(arcsin(sqrt((2*b*sqrt((a 
^2 + a*b)/b^2) + 2*a + b)/b)*(cos(f*x + e) + I*sin(f*x + e))), (8*a^2 + 8* 
a*b + b^2 - 4*(2*a*b + b^2)*sqrt((a^2 + a*b)/b^2))/b^2) + (-2*I*sqrt(-b)*b 
*sqrt((a^2 + a*b)/b^2) + (2*I*a + I*b)*sqrt(-b))*sqrt((2*b*sqrt((a^2 + a*b 
)/b^2) + 2*a + b)/b)*elliptic_f(arcsin(sqrt((2*b*sqrt((a^2 + a*b)/b^2) + 2 
*a + b)/b)*(cos(f*x + e) - I*sin(f*x + e))), (8*a^2 + 8*a*b + b^2 - 4*(2*a 
*b + b^2)*sqrt((a^2 + a*b)/b^2))/b^2))/(b^2*f)
 
3.6.18.6 Sympy [F]

\[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int \frac {1}{\sqrt {a + b \sin ^{2}{\left (e + f x \right )}}}\, dx \]

input
integrate(1/(a+b*sin(f*x+e)**2)**(1/2),x)
 
output
Integral(1/sqrt(a + b*sin(e + f*x)**2), x)
 
3.6.18.7 Maxima [F]

\[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int { \frac {1}{\sqrt {b \sin \left (f x + e\right )^{2} + a}} \,d x } \]

input
integrate(1/(a+b*sin(f*x+e)^2)^(1/2),x, algorithm="maxima")
 
output
integrate(1/sqrt(b*sin(f*x + e)^2 + a), x)
 
3.6.18.8 Giac [F]

\[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int { \frac {1}{\sqrt {b \sin \left (f x + e\right )^{2} + a}} \,d x } \]

input
integrate(1/(a+b*sin(f*x+e)^2)^(1/2),x, algorithm="giac")
 
output
sage0*x
 
3.6.18.9 Mupad [F(-1)]

Timed out. \[ \int \frac {1}{\sqrt {a+b \sin ^2(e+f x)}} \, dx=\int \frac {1}{\sqrt {b\,{\sin \left (e+f\,x\right )}^2+a}} \,d x \]

input
int(1/(a + b*sin(e + f*x)^2)^(1/2),x)
 
output
int(1/(a + b*sin(e + f*x)^2)^(1/2), x)